]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: fix modem connected state check
authorDan Williams <dcbw@redhat.com>
Thu, 12 May 2011 18:07:30 +0000 (13:07 -0500)
committerDan Winship <danw@gnome.org>
Thu, 19 May 2011 16:09:56 +0000 (12:09 -0400)
There is no CONNECTED state for devices, it's ACTIVATED.

https://bugzilla.gnome.org/show_bug.cgi?id=650124

js/ui/status/network.js

index 44468c26fd2a2ee9f532a4bb0cffd8d554f4d894..3617c2b101de0b33e8bbff0130f783342eac7e8f 100644 (file)
@@ -838,7 +838,7 @@ NMDeviceModem.prototype = {
     },
 
     get connected() {
-        return this._enabled && this.device.state == NetworkManager.DeviceState.CONNECTED;
+        return this._enabled && this.device.state == NetworkManager.DeviceState.ACTIVATED;
     },
 
     destroy: function() {